#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
	int num = 0;
	int alt = 0;
	int oth = 0;
	int i;
	char a[10];
	while (rewind(stdin), scanf("%s", a) != 0) {
		for (i = 0; a[i] != '\0'; i++) {
			if (a[i] >= '0'&&a[i] <= '9') {
				num++;
			}
			else if (a[i] >= 'a'&&a[i] <= 'z'&&a[i] >= 'A'&&a[i] <= 'Z') {
				alt++;
			}
			else oth++;
		}printf("num=%d,alt=%d,oth=%d\n", num, alt, oth);
	}
	
	system("pause");
	return 0;
}